package com.xbongbong.pro.listbatch.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 批量操作基础
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/20 23:15
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ListBatchDTO extends BaseDTO {
    private static final long serialVersionUID = 8413587937723818381L;
    /**
     * 业务类型
     */
    @NotNull(message = "{dto.msg.listBatch.businessType.NotNull}")
    private Integer businessType;
    /**
     * 数据id列表
     */
    @NotNull(message = "{dto.msg.listBatch.dataIdList.NotNull}")
    @Size(min = 1,message = "{dto.msg.listBatch.businessType.Size}")
    @Size(max = 200,message = "{dto.msg.listBatch.dataIdList.Size}")
    private List<Long> dataIdList;

    private Integer saasMark;

    @Positive(message = "{dto.msg.listBatch.formId.Positive}")
    private Long formId;
    /**
     * 资金账户
     */
    private Long accountId;
    /**
     * 1批量 0 非批量操作
     */
    private Integer isBatch;
    /**
     * 是否来自查重界面
     */
    private Boolean fromCheckRepeatForm = false;
}
